package com.scuec.groupfive.service;

import com.scuec.groupfive.dto.QuestionSubmissionDTO;
import com.scuec.groupfive.entity.PastExam;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PastExamRecordService {
    List<PastExam> getPastExamRecordsByUserId(Long userId, int page, int size);

    List<PastExam> searchPastExamRecords(
            Long userId,
            Date startDate,
            Date endDate,
            String keyword,
            int page,
            int size
    );

    Map<String, Object> getPastExamRecordDetail(Long recordId);

    Long submitPastExam(Long userId, String examType, Integer examYear,
                        List<QuestionSubmissionDTO> questions);

    // PastExamRecordService.java
// 在接口中添加：
    void toggleFavorite(Long userId, Long questionId, Boolean isFavorite);
}